home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / include / dvdevcod.h < prev    next >
C/C++ Source or Header  |  2001-10-08  |  33KB  |  732 lines

  1. //------------------------------------------------------------------------------
  2. // File: DVDevCod.h
  3. //
  4. // Desc: List of standard DVD-Video event codes and the expected params.
  5. //
  6. // Copyright (c) 1992-2001, Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9. #ifndef __DVDEVCOD__
  10. #define __DVDEVCOD__
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. //
  14. //  Windows XP vs. DirectX 8.0 header merge
  15. //
  16. //  Separate the updated Windows XP version of this header from the downlevel
  17. //  version that shipped with the DirectX 8.0 SDK.  Since development 
  18. //  on BDA technology continued for Windows XP, some changes were made to
  19. //  this file in order to improve the interface and functionality.
  20. //
  21. //  To maintain compatibility with older applications which rely on the
  22. //  DirectX 8.0 versions of these files, the DirectX 8.1 version includes
  23. //  both the Windows XP content and the DirectX 8.0 content, which are 
  24. //  separated by the #if (WINVER >= 0x501) preprocessor directive.
  25. //
  26. //  Therefore, if you define WINVER to be 0x501 to specify Windows XP,
  27. //  the revised content will be compiled.  Otherwise, the original 
  28. //  DirectX 8.0 content will be used.
  29. //
  30. /////////////////////////////////////////////////////////////////////////////
  31.  
  32. #if (WINVER >= 0x501)    // Windows XP content
  33.  
  34.  
  35.  
  36. #define EC_DVDBASE                          0x0100
  37.  
  38. #ifndef EXCLUDE_DVDEVCODE_ENUMS
  39.  
  40. typedef enum _tagDVD_ERROR {
  41.     DVD_ERROR_Unexpected=1,         // Something unexpected happened, perhaps content
  42.                                     //   is incorrectly authored.  Playback is stopped.
  43.     DVD_ERROR_CopyProtectFail=2,    // Key exchange for DVD copy protection failed. 
  44.                                     //   Playback is stopped.
  45.     DVD_ERROR_InvalidDVD1_0Disc=3,  // DVD-Video disc is incorrectly authored for v1.0 
  46.                                     //   of spec. Playback is stopped.
  47.     DVD_ERROR_InvalidDiscRegion=4,  // The Disc cannot be played because the disc is not
  48.                                     // authored to play in system region.
  49.                                     // The region mismatch may be fixable by 
  50.                                     // changing the system region with dvdrgn.exe
  51.     DVD_ERROR_LowParentalLevel=5,   // Player parental level is lower than the lowest parental
  52.                                     //   level available in the DVD content. Playback is stopped.
  53.     DVD_ERROR_MacrovisionFail=6,    // Macrovision Distribution Failed.
  54.                                     // Playback is stopped.
  55.     DVD_ERROR_IncompatibleSystemAndDecoderRegions=7,
  56.                                     // No discs can be played because the system region
  57.                                     // does not match the decoder region.
  58.     DVD_ERROR_IncompatibleDiscAndDecoderRegions=8
  59.                                     // The disc cannot be played because the disc is
  60.                                     // not authored to be played in the decoder's region
  61. } DVD_ERROR;
  62.  
  63. typedef enum _tagDVD_WARNING {
  64.     DVD_WARNING_InvalidDVD1_0Disc=1,// DVD-Video disc is incorrectly authored. Playback
  65.                                     //   can continue, but unexpected behavior may occur.
  66.     DVD_WARNING_FormatNotSupported=2,// A decoder would not support the current format.  Playback
  67.                                     //   of a stream (audio, video of SP) may not function.
  68.                                     //   lParam2 contains the stream type (see AM_DVD_STREAM_FLAGS)
  69.     DVD_WARNING_IllegalNavCommand=3,// The internal DVD navigation command processor attempted to 
  70.                                     //   process an illegal command.
  71.     DVD_WARNING_Open = 4,           // File Open Failed
  72.     DVD_WARNING_Seek = 5,           // File Seek Failed
  73.     DVD_WARNING_Read = 6            // File Read Failed
  74. } DVD_WARNING;
  75.  
  76. typedef enum _tagDVD_PB_STOPPED {
  77.     DVD_PB_STOPPED_Other=0,                 // The navigator stopped the playback (no reason available).
  78.     DVD_PB_STOPPED_NoBranch=1,              // The nav completed the current pgc and there was no more video and
  79.                                             // did not find any other branching instruction for subsequent playback.
  80.     DVD_PB_STOPPED_NoFirstPlayDomain =2,    // The disc does not contain an initial startup program.
  81.     DVD_PB_STOPPED_StopCommand = 3,         // The app issued a stop() command or a stop command was authored on the disc.
  82.     DVD_PB_STOPPED_Reset=4,                 // The navigator was reset to the start of the disc (using ResetOnStop).
  83.     DVD_PB_STOPPED_DiscEjected=5,           // The disc was ejected.
  84.     DVD_PB_STOPPED_IllegalNavCommand = 6,   // An illegal nav command prevented playback from continuing.
  85.     DVD_PB_STOPPED_PlayPeriodAutoStop = 7,  // PlayPeriod completed
  86.     DVD_PB_STOPPED_PlayChapterAutoStop = 8, // PlayChapter completed
  87.     DVD_PB_STOPPED_ParentalFailure = 9,     // A parental level failure prevented playback
  88.     DVD_PB_STOPPED_RegionFailure = 10,      // A region failure prevented playback
  89.     DVD_PB_STOPPED_MacrovisionFailure = 11, // A Macrovision failure prevented playback.
  90.     DVD_PB_STOPPED_DiscReadError = 12,      // A read error prevented playback.
  91.     DVD_PB_STOPPED_CopyProtectFailure = 13  // Copy protection failure.
  92. } DVD_PB_STOPPED;
  93.  
  94.  
  95. #endif
  96.  
  97. // DVD-Video event codes
  98. // ======================
  99. //
  100. // All DVD-Video event are always passed on to the application, and are 
  101. // never processed by the filter graph
  102.  
  103.  
  104. #define EC_DVD_DOMAIN_CHANGE                    (EC_DVDBASE + 0x01)
  105. // Parameters: ( DWORD, void ) 
  106. // lParam1 is enum DVD_DOMAIN, and indicates the player's new domain
  107. //
  108. // Raised from following domains: all
  109. //
  110. // Signaled when ever the DVD player changes domains.
  111.  
  112.  
  113. #define EC_DVD_TITLE_CHANGE                     (EC_DVDBASE + 0x02)
  114. // Parameters: ( DWORD, void ) 
  115. // lParam1 is the new title number.
  116. //
  117. // Raised from following domains: DVD_DOMAIN_Title
  118. //
  119. // Indicates when the current title number changes.  Title numbers
  120. // range 1 to 99.  This indicates the TTN, which is the title number
  121. // with respect to the whole disc, not the VTS_TTN which is the title
  122. // number with respect to just a current VTS.
  123.  
  124.  
  125. #define EC_DVD_CHAPTER_START                   (EC_DVDBASE + 0x03)
  126. // Parameters: ( DWORD, void ) 
  127. // lParam1 is the new chapter number (which is the program number for 
  128. // One_Sequential_PGC_Titles).
  129. //
  130. // Raised from following domains: DVD_DOMAIN_Title
  131. //
  132. // Signales that DVD player started playback of a new program in the Title 
  133. // domain.  This is only signaled for One_Sequential_PGC_Titles.
  134.  
  135.  
  136. #define EC_DVD_AUDIO_STREAM_CHANGE              (EC_DVDBASE + 0x04)
  137. // Parameters: ( DWORD, void ) 
  138. // lParam1 is the new user audio stream number.
  139. //
  140. // Raised from following domains: all
  141. //
  142. // Signaled when ever the current user audio stream number changes for the main 
  143. // title.  This can be changed automatically with a navigation command on disc
  144. // as well as through IDVDAnnexJ.
  145. // Audio stream numbers range from 0 to 7.  Stream 0xffffffff
  146. // indicates that no stream is selected.
  147.  
  148. #define EC_DVD_SUBPICTURE_STREAM_CHANGE         (EC_DVDBASE + 0x05)
  149. // Parameters: ( DWORD, BOOL ) 
  150. // lParam1 is the new user subpicture stream number.
  151. // lParam2 is the subpicture's on/off state (TRUE if on)
  152. //
  153. // Raised from following domains: all
  154. //
  155. // Signaled when ever the current user subpicture stream number changes for the main 
  156. // title.  This can be changed automatically with a navigation command on disc
  157. // as well as through IDVDAnnexJ.  
  158. // Subpicture stream numbers range from 0 to 31.  Stream 0xffffffff
  159. // indicates that no stream is selected.  
  160.  
  161. #define EC_DVD_ANGLE_CHANGE                     (EC_DVDBASE + 0x06)
  162. // Parameters: ( DWORD, DWORD ) 
  163. // lParam1 is the number of available angles.
  164. // lParam2 is the current user angle number.
  165. //
  166. // Raised from following domains: all
  167. //
  168. // Signaled when ever either 
  169. //   a) the number of available angles changes, or  
  170. //   b) the current user angle number changes.
  171. // Current angle number can be changed automatically with navigation command 
  172. // on disc as well as through IDVDAnnexJ.
  173. // When the number of available angles is 1, the current video is not multiangle.
  174. // Angle numbers range from 1 to 9.
  175.  
  176.  
  177. #define EC_DVD_BUTTON_CHANGE                    (EC_DVDBASE + 0x07)
  178. // Parameters: ( DWORD, DWORD ) 
  179. // lParam1 is the number of available buttons.
  180. // lParam2 is the current selected button number.
  181. //
  182. // Raised from following domains: all
  183. //
  184. // Signaled when ever either 
  185. //   a) the number of available buttons changes, or  
  186. //   b) the current selected button number changes.
  187. // The current selected button can be changed automatically with navigation 
  188. // commands on disc as well as through IDVDAnnexJ.  
  189. // Button numbers range from 1 to 36.  Selected button number 0 implies that
  190. // no button is selected.  Note that these button numbers enumerate all 
  191. // available button numbers, and do not always correspond to button numbers
  192. // used for IDVDAnnexJ::ButtonSelectAndActivate since only a subset of buttons
  193. // may be activated with ButtonSelectAndActivate.
  194.  
  195.  
  196. #define EC_DVD_VALID_UOPS_CHANGE                (EC_DVDBASE + 0x08)
  197. // Parameters: ( DWORD, void ) 
  198. // lParam1 is a VALID_UOP_SOMTHING_OR_OTHER bit-field stuct which indicates
  199. //   which IDVDAnnexJ commands are explicitly disable by the DVD disc.
  200. //
  201. // Raised from following domains: all
  202. //
  203. // Signaled when ever the available set of IDVDAnnexJ methods changes.  This
  204. // only indicates which operations are explicited disabled by the content on 
  205. // the DVD disc, and does not guarentee that it is valid to call methods 
  206. // which are not disabled.  For example, if no buttons are currently present,
  207. // IDVDAnnexJ::ButtonActivate() won't work, even though the buttons are not
  208. // explicitly disabled. 
  209.  
  210.  
  211. #define EC_DVD_STILL_ON                         (EC_DVDBASE + 0x09)
  212. // Parameters: ( BOOL, DWORD ) 
  213. // lParam1 == 0  -->  buttons are available, so StillOff won't work
  214. // lParam1 == 1  -->  no buttons available, so StillOff will work
  215. // lParam2 indicates the number of seconds the still will last, with 0xffffffff 
  216. //   indicating an infinite still (wait till button or StillOff selected).
  217. //
  218. // Raised from following domains: all
  219. //
  220. // Signaled at the beginning of any still: PGC still, Cell Still, or VOBU Still.
  221. // Note that all combinations of buttons and still are possible (buttons on with
  222. // still on, buttons on with still off, button off with still on, button off
  223. // with still off).
  224.  
  225. #define EC_DVD_STILL_OFF                         (EC_DVDBASE + 0x0a)
  226. // Parameters: ( void, void ) 
  227. //
  228. //   Indicating that any still that is currently active
  229. //   has been released.
  230. //
  231. // Raised from following domains: all
  232. //
  233. // Signaled at the end of any still: PGC still, Cell Still, or VOBU Still.
  234. //
  235.  
  236. #define EC_DVD_CURRENT_TIME                     (EC_DVDBASE + 0x0b)
  237. // Parameters: ( DWORD, BOOL ) 
  238. // lParam1 is a DVD_TIMECODE which indicates the current 
  239. //   playback time code in a BCD HH:MM:SS:FF format.
  240. // lParam2 == 0  -->  time code is 25 frames/sec
  241. // lParam2 == 1  -->  time code is 30 frames/sec (non-drop).
  242. // lParam2 == 2  -->  time code is invalid (current playback time 
  243. //                    cannot be determined for current title)
  244. //
  245. // Raised from following domains: DVD_DOMAIN_Title
  246. //
  247. // Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec.
  248. // This is only signaled for One_Sequential_PGC_Titles.
  249.  
  250.  
  251. #define EC_DVD_ERROR                            (EC_DVDBASE + 0x0c)
  252. // Parameters: ( DWORD, void) 
  253. // lParam1 is an enum DVD_ERROR which notifies the app of some error condition.
  254. //
  255. // Raised from following domains: all
  256. //
  257.  
  258. #define EC_DVD_WARNING                           (EC_DVDBASE + 0x0d)
  259. // Parameters: ( DWORD, DWORD) 
  260. // lParam1 is an enum DVD_WARNING which notifies the app of some warning condition.
  261. // lParam2 contains more specific information about the warning (warning dependent)
  262. //
  263. // Raised from following domains: all
  264. //
  265.  
  266. #define EC_DVD_CHAPTER_AUTOSTOP                  (EC_DVDBASE + 0x0e)
  267. // Parameters: (BOOL, void)
  268. // lParam1 is a BOOL which indicates the reason for the cancellation of ChapterPlayAutoStop
  269. // lParam1 == 0 indicates successful completion of ChapterPlayAutoStop
  270. // lParam1 == 1 indicates that ChapterPlayAutoStop is being cancelled as a result of another
  271. //            IDVDControl call or the end of content has been reached & no more chapters
  272. //            can be played.
  273. //  Indicating that playback is stopped as a result of a call
  274. //  to IDVDControl::ChapterPlayAutoStop()
  275. //
  276. // Raised from following domains : DVD_DOMAIN_TITLE
  277. //
  278.  
  279. #define EC_DVD_NO_FP_PGC                         (EC_DVDBASE + 0x0f)
  280. //  Parameters : (void, void)
  281. //
  282. //  Raised from the following domains : FP_DOM
  283. //
  284. //  Indicates that the DVD disc does not have a FP_PGC (First Play Program Chain)
  285. //  and the DVD Navigator will not automatically load any PGC and start playback.
  286. //
  287.  
  288. #define EC_DVD_PLAYBACK_RATE_CHANGE              (EC_DVDBASE + 0x10)
  289. //  Parameters : (LONG, void)
  290. //  lParam1 is a LONG indicating the new playback rate.
  291. //  lParam1 < 0 indicates reverse playback mode.
  292. //  lParam1 > 0 indicates forward playback mode
  293. //  Value of lParam1 is the actual playback rate multiplied by 10000.
  294. //  i.e. lParam1 = rate * 10000
  295. //
  296. //  Raised from the following domains : TT_DOM
  297. //
  298. //  Indicates that a rate change in playback has been initiated and the parameter
  299. //  lParam1 indicates the new playback rate that is being used.
  300. //
  301.  
  302. #define EC_DVD_PARENTAL_LEVEL_CHANGE            (EC_DVDBASE + 0x11)
  303. //  Parameters : (LONG, void)
  304. //  lParam1 is a LONG indicating the new parental level.
  305. //
  306. //  Raised from the following domains : VMGM_DOM
  307. //
  308. //  Indicates that an authored Nav command has changed the parental level
  309. //  setting in the player.
  310. //
  311.  
  312. #define EC_DVD_PLAYBACK_STOPPED                 (EC_DVDBASE + 0x12)
  313. //  Parameters : (DWORD, void)
  314. //
  315. //  Raised from the following domains : All Domains
  316. //
  317. // Indicates that playback has been stopped as the Navigator has completed
  318. // playback of the pgc and did not find any other branching instruction for
  319. // subsequent playback.
  320. //
  321. //  The DWORD returns the reason for the completion of the playback.  See
  322. //  The DVD_PB_STOPPED enumeration for details.
  323. //
  324.  
  325. #define EC_DVD_ANGLES_AVAILABLE                 (EC_DVDBASE + 0x13)
  326. //  Parameters : (BOOL, void)
  327. //  lParam1 == 0 indicates that playback is not in an angle block and angles are
  328. //             not available
  329. //  lParam1 == 1 indicates that an angle block is being played back and angle changes
  330. //             can be performed.
  331. //
  332. //  Indicates whether an angle block is being played and if angle changes can be 
  333. //  performed. However, angle changes are not restricted to angle blocks and the
  334. //  manifestation of the angle change can be seen only in an angle block.
  335.  
  336. #define EC_DVD_PLAYPERIOD_AUTOSTOP              (EC_DVDBASE + 0x14)
  337. // Parameters: (void, void)
  338. // Sent when the PlayPeriodInTitle completes or is cancelled
  339. //
  340. // Raised from following domains : DVD_DOMAIN_TITLE
  341. //
  342.  
  343. #define EC_DVD_BUTTON_AUTO_ACTIVATED                 (EC_DVDBASE + 0x15)
  344. // Parameters: (DWORD button, void)
  345. // Sent when a button is automatically activated
  346. //
  347. // Raised from following domains : DVD_DOMAIN_MENU
  348. //
  349.  
  350. #define EC_DVD_CMD_START                 (EC_DVDBASE + 0x16)
  351. // Parameters: (CmdID, HRESULT)
  352. // Sent when a command begins
  353. //
  354.  
  355. #define EC_DVD_CMD_END                 (EC_DVDBASE + 0x17)
  356. // Parameters: (CmdID, HRESULT)
  357. // Sent when a command completes
  358. //
  359.  
  360. #define EC_DVD_DISC_EJECTED                (EC_DVDBASE + 0x18)
  361. // Parameters: none
  362. // Sent when the nav detects that a disc was ejected and stops the playback
  363. // The app does not need to take any action to stop the playback.
  364. //
  365.  
  366. #define EC_DVD_DISC_INSERTED                (EC_DVDBASE + 0x19)
  367. // Parameters: none
  368. // Sent when the nav detects that a disc was inserted and the nav begins playback
  369. // The app does not need to take any action to start the playback.
  370. //
  371.  
  372. #define EC_DVD_CURRENT_HMSF_TIME                     (EC_DVDBASE + 0x1a)
  373. // Parameters: ( ULONG, ULONG ) 
  374. // lParam2 contains a union of the DVD_TIMECODE_FLAGS
  375. // lParam1 contains a DVD_HMSF_TIMECODE.  Assign lParam1 to a ULONG then cast the
  376. // ULONG as a DVD_HMSF_TIMECODE to use its values.
  377. //
  378. // Raised from following domains: DVD_DOMAIN_Title
  379. //
  380. // Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec.
  381.  
  382. #define EC_DVD_KARAOKE_MODE                     (EC_DVDBASE + 0x1b)
  383. // Parameters: ( BOOL, reserved ) 
  384. // lParam1 is either TRUE (a karaoke track is being played) or FALSE (no karaoke data is being played).
  385. //
  386.  
  387.  
  388.  
  389.  
  390. /////////////////////////////////////////////////////////////////////////////
  391. //
  392. //  Windows XP vs. DirectX 8.0 header merge
  393. //
  394. //  The following is the original contents of this header from
  395. //  the DirectX 8.0 SDK.
  396. //
  397. /////////////////////////////////////////////////////////////////////////////
  398.  
  399. #else     // DirectX 8.0 content
  400.  
  401.     #define EC_DVDBASE                          0x0100
  402.  
  403.     #ifndef EXCLUDE_DVDEVCODE_ENUMS
  404.  
  405.     typedef enum _tagDVD_ERROR {
  406.         DVD_ERROR_Unexpected=1,         // Something unexpected happened, perhaps content
  407.                                         //   is incorrectly authored.  Playback is stopped.
  408.         DVD_ERROR_CopyProtectFail=2,    // Key exchange for DVD copy protection failed. 
  409.                                         //   Playback is stopped.
  410.         DVD_ERROR_InvalidDVD1_0Disc=3,  // DVD-Video disc is incorrectly authored for v1.0 
  411.                                         //   of spec. Playback is stopped.
  412.         DVD_ERROR_InvalidDiscRegion=4,  // The Disc cannot be played because the disc is not
  413.                                         // authored to play in system region.
  414.                                         // The region mismatch may be fixable by 
  415.                                         // changing the system region with dvdrgn.exe
  416.         DVD_ERROR_LowParentalLevel=5,   // Player parental level is lower than the lowest parental
  417.                                         //   level available in the DVD content. Playback is stopped.
  418.         DVD_ERROR_MacrovisionFail=6,    // Macrovision Distribution Failed.
  419.                                         // Playback is stopped.
  420.         DVD_ERROR_IncompatibleSystemAndDecoderRegions=7,
  421.                                         // No discs can be played because the system region
  422.                                         // does not match the decoder region.
  423.         DVD_ERROR_IncompatibleDiscAndDecoderRegions=8
  424.                                         // The disc cannot be played because the disc is
  425.                                         // not authored to be played in the decoder's region
  426.     } DVD_ERROR;
  427.  
  428.     typedef enum _tagDVD_WARNING {
  429.         DVD_WARNING_InvalidDVD1_0Disc=1,// DVD-Video disc is incorrectly authored. Playback
  430.                                         //   can continue, but unexpected behavior may occur.
  431.         DVD_WARNING_FormatNotSupported=2,// A decoder would not support the current format.  Playback
  432.                                         //   of a stream (audio, video of SP) may not function.
  433.         DVD_WARNING_IllegalNavCommand=3,// The internal DVD navigation command processor attempted to 
  434.                                         //   process an illegal command.
  435.         DVD_WARNING_Open = 4,           // File Open Failed
  436.         DVD_WARNING_Seek = 5,           // File Seek Failed
  437.         DVD_WARNING_Read = 6            // File Read Failed
  438.     } DVD_WARNING;
  439.  
  440.     #endif
  441.  
  442.     // DVD-Video event codes
  443.     // ======================
  444.     //
  445.     // All DVD-Video event are always passed on to the application, and are 
  446.     // never processed by the filter graph
  447.  
  448.  
  449.     #define EC_DVD_DOMAIN_CHANGE                    (EC_DVDBASE + 0x01)
  450.     // Parameters: ( DWORD, void ) 
  451.     // lParam1 is enum DVD_DOMAIN, and indicates the player's new domain
  452.     //
  453.     // Raised from following domains: all
  454.     //
  455.     // Signaled when ever the DVD player changes domains.
  456.  
  457.  
  458.     #define EC_DVD_TITLE_CHANGE                     (EC_DVDBASE + 0x02)
  459.     // Parameters: ( DWORD, void ) 
  460.     // lParam1 is the new title number.
  461.     //
  462.     // Raised from following domains: DVD_DOMAIN_Title
  463.     //
  464.     // Indicates when the current title number changes.  Title numbers
  465.     // range 1 to 99.  This indicates the TTN, which is the title number
  466.     // with respect to the whole disc, not the VTS_TTN which is the title
  467.     // number with respect to just a current VTS.
  468.  
  469.  
  470.     #define EC_DVD_CHAPTER_START                   (EC_DVDBASE + 0x03)
  471.     // Parameters: ( DWORD, void ) 
  472.     // lParam1 is the new chapter number (which is the program number for 
  473.     // One_Sequential_PGC_Titles).
  474.     //
  475.     // Raised from following domains: DVD_DOMAIN_Title
  476.     //
  477.     // Signales that DVD player started playback of a new program in the Title 
  478.     // domain.  This is only signaled for One_Sequential_PGC_Titles.
  479.  
  480.  
  481.     #define EC_DVD_AUDIO_STREAM_CHANGE              (EC_DVDBASE + 0x04)
  482.     // Parameters: ( DWORD, void ) 
  483.     // lParam1 is the new user audio stream number.
  484.     //
  485.     // Raised from following domains: all
  486.     //
  487.     // Signaled when ever the current user audio stream number changes for the main 
  488.     // title.  This can be changed automatically with a navigation command on disc
  489.     // as well as through IDVDAnnexJ.
  490.     // Audio stream numbers range from 0 to 7.  Stream 0xffffffff
  491.     // indicates that no stream is selected.
  492.  
  493.     #define EC_DVD_SUBPICTURE_STREAM_CHANGE         (EC_DVDBASE + 0x05)
  494.     // Parameters: ( DWORD, void ) 
  495.     // lParam1 is the new user subpicture stream number.
  496.     //
  497.     // Raised from following domains: all
  498.     //
  499.     // Signaled when ever the current user subpicture stream number changes for the main 
  500.     // title.  This can be changed automatically with a navigation command on disc
  501.     // as well as through IDVDAnnexJ.  
  502.     // Subpicture stream numbers range from 0 to 31.  Stream 0xffffffff
  503.     // indicates that no stream is selected.  
  504.  
  505.     #define EC_DVD_ANGLE_CHANGE                     (EC_DVDBASE + 0x06)
  506.     // Parameters: ( DWORD, DWORD ) 
  507.     // lParam1 is the number of available angles.
  508.     // lParam2 is the current user angle number.
  509.     //
  510.     // Raised from following domains: all
  511.     //
  512.     // Signaled when ever either 
  513.     //   a) the number of available angles changes, or  
  514.     //   b) the current user angle number changes.
  515.     // Current angle number can be changed automatically with navigation command 
  516.     // on disc as well as through IDVDAnnexJ.
  517.     // When the number of available angles is 1, the current video is not multiangle.
  518.     // Angle numbers range from 1 to 9.
  519.  
  520.  
  521.     #define EC_DVD_BUTTON_CHANGE                    (EC_DVDBASE + 0x07)
  522.     // Parameters: ( DWORD, DWORD ) 
  523.     // lParam1 is the number of available buttons.
  524.     // lParam2 is the current selected button number.
  525.     //
  526.     // Raised from following domains: all
  527.     //
  528.     // Signaled when ever either 
  529.     //   a) the number of available buttons changes, or  
  530.     //   b) the current selected button number changes.
  531.     // The current selected button can be changed automatically with navigation 
  532.     // commands on disc as well as through IDVDAnnexJ.  
  533.     // Button numbers range from 1 to 36.  Selected button number 0 implies that
  534.     // no button is selected.  Note that these button numbers enumerate all 
  535.     // available button numbers, and do not always correspond to button numbers
  536.     // used for IDVDAnnexJ::ButtonSelectAndActivate since only a subset of buttons
  537.     // may be activated with ButtonSelectAndActivate.
  538.  
  539.  
  540.     #define EC_DVD_VALID_UOPS_CHANGE                (EC_DVDBASE + 0x08)
  541.     // Parameters: ( DWORD, void ) 
  542.     // lParam1 is a VALID_UOP_SOMTHING_OR_OTHER bit-field stuct which indicates
  543.     //   which IDVDAnnexJ commands are explicitly disable by the DVD disc.
  544.     //
  545.     // Raised from following domains: all
  546.     //
  547.     // Signaled when ever the available set of IDVDAnnexJ methods changes.  This
  548.     // only indicates which operations are explicited disabled by the content on 
  549.     // the DVD disc, and does not guarentee that it is valid to call methods 
  550.     // which are not disabled.  For example, if no buttons are currently present,
  551.     // IDVDAnnexJ::ButtonActivate() won't work, even though the buttons are not
  552.     // explicitly disabled. 
  553.  
  554.  
  555.     #define EC_DVD_STILL_ON                         (EC_DVDBASE + 0x09)
  556.     // Parameters: ( BOOL, DWORD ) 
  557.     // lParam1 == 0  -->  buttons are available, so StillOff won't work
  558.     // lParam1 == 1  -->  no buttons available, so StillOff will work
  559.     // lParam2 indicates the number of seconds the still will last, with 0xffffffff 
  560.     //   indicating an infinite still (wait till button or StillOff selected).
  561.     //
  562.     // Raised from following domains: all
  563.     //
  564.     // Signaled at the beginning of any still: PGC still, Cell Still, or VOBU Still.
  565.     // Note that all combinations of buttons and still are possible (buttons on with
  566.     // still on, buttons on with still off, button off with still on, button off
  567.     // with still off).
  568.  
  569.     #define EC_DVD_STILL_OFF                         (EC_DVDBASE + 0x0a)
  570.     // Parameters: ( void, void ) 
  571.     //
  572.     //   Indicating that any still that is currently active
  573.     //   has been released.
  574.     //
  575.     // Raised from following domains: all
  576.     //
  577.     // Signaled at the end of any still: PGC still, Cell Still, or VOBU Still.
  578.     //
  579.  
  580.     #define EC_DVD_CURRENT_TIME                     (EC_DVDBASE + 0x0b)
  581.     // Parameters: ( DWORD, BOOL ) 
  582.     // lParam1 is a DVD_TIMECODE which indicates the current 
  583.     //   playback time code in a BCD HH:MM:SS:FF format.
  584.     // lParam2 == 0  -->  time code is 25 frames/sec
  585.     // lParam2 == 1  -->  time code is 30 frames/sec (non-drop).
  586.     // lParam2 == 2  -->  time code is invalid (current playback time 
  587.     //                    cannot be determined for current title)
  588.     //
  589.     // Raised from following domains: DVD_DOMAIN_Title
  590.     //
  591.     // Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec.
  592.     // This is only signaled for One_Sequential_PGC_Titles.
  593.  
  594.  
  595.     #define EC_DVD_ERROR                            (EC_DVDBASE + 0x0c)
  596.     // Parameters: ( DWORD, void) 
  597.     // lParam1 is an enum DVD_ERROR which notifies the app of some error condition.
  598.     //
  599.     // Raised from following domains: all
  600.     //
  601.  
  602.     #define EC_DVD_WARNING                           (EC_DVDBASE + 0x0d)
  603.     // Parameters: ( DWORD, void) 
  604.     // lParam1 is an enum DVD_WARNING which notifies the app of some warning condition.
  605.     //
  606.     // Raised from following domains: all
  607.     //
  608.  
  609.     #define EC_DVD_CHAPTER_AUTOSTOP                  (EC_DVDBASE + 0x0e)
  610.     // Parameters: (BOOL, void)
  611.     // lParam1 is a BOOL which indicates the reason for the cancellation of ChapterPlayAutoStop
  612.     // lParam1 == 0 indicates successful completion of ChapterPlayAutoStop
  613.     // lParam1 == 1 indicates that ChapterPlayAutoStop is being cancelled as a result of another
  614.     //            IDVDControl call or the end of content has been reached & no more chapters
  615.     //            can be played.
  616.     //  Indicating that playback is stopped as a result of a call
  617.     //  to IDVDControl::ChapterPlayAutoStop()
  618.     //
  619.     // Raised from following domains : DVD_DOMAIN_TITLE
  620.     //
  621.  
  622.     #define EC_DVD_NO_FP_PGC                         (EC_DVDBASE + 0x0f)
  623.     //  Parameters : (void, void)
  624.     //
  625.     //  Raised from the following domains : FP_DOM
  626.     //
  627.     //  Indicates that the DVD disc does not have a FP_PGC (First Play Program Chain)
  628.     //  and the DVD Navigator will not automatically load any PGC and start playback.
  629.     //
  630.  
  631.     #define EC_DVD_PLAYBACK_RATE_CHANGE              (EC_DVDBASE + 0x10)
  632.     //  Parameters : (LONG, void)
  633.     //  lParam1 is a LONG indicating the new playback rate.
  634.     //  lParam1 < 0 indicates reverse playback mode.
  635.     //  lParam1 > 0 indicates forward playback mode
  636.     //  Value of lParam1 is the actual playback rate multiplied by 10000.
  637.     //  i.e. lParam1 = rate * 10000
  638.     //
  639.     //  Raised from the following domains : TT_DOM
  640.     //
  641.     //  Indicates that a rate change in playback has been initiated and the parameter
  642.     //  lParam1 indicates the new playback rate that is being used.
  643.     //
  644.  
  645.     #define EC_DVD_PARENTAL_LEVEL_CHANGE            (EC_DVDBASE + 0x11)
  646.     //  Parameters : (LONG, void)
  647.     //  lParam1 is a LONG indicating the new parental level.
  648.     //
  649.     //  Raised from the following domains : VMGM_DOM
  650.     //
  651.     //  Indicates that an authored Nav command has changed the parental level
  652.     //  setting in the player.
  653.     //
  654.  
  655.     #define EC_DVD_PLAYBACK_STOPPED                 (EC_DVDBASE + 0x12)
  656.     //  Parameters : (void, void)
  657.     //
  658.     //  Raised from the following domains : All Domains
  659.     //
  660.     // Indicates that playback has been stopped as the Navigator has completed
  661.     // playback of the pgc and did not find any other branching instruction for
  662.     // subsequent playback.
  663.     //
  664.  
  665.     #define EC_DVD_ANGLES_AVAILABLE                 (EC_DVDBASE + 0x13)
  666.     //  Parameters : (BOOL, void)
  667.     //  lParam1 == 0 indicates that playback is not in an angle block and angles are
  668.     //             not available
  669.     //  lParam1 == 1 indicates that an angle block is being played back and angle changes
  670.     //             can be performed.
  671.     //
  672.     //  Indicates whether an angle block is being played and if angle changes can be 
  673.     //  performed. However, angle changes are not restricted to angle blocks and the
  674.     //  manifestation of the angle change can be seen only in an angle block.
  675.  
  676.     #define EC_DVD_PLAYPERIOD_AUTOSTOP              (EC_DVDBASE + 0x14)
  677.     // Parameters: (void, void)
  678.     // Sent when the PlayPeriodInTitle completes or is cancelled
  679.     //
  680.     // Raised from following domains : DVD_DOMAIN_TITLE
  681.     //
  682.  
  683.     #define EC_DVD_BUTTON_AUTO_ACTIVATED                 (EC_DVDBASE + 0x15)
  684.     // Parameters: (DWORD button, void)
  685.     // Sent when a button is automatically activated
  686.     //
  687.     // Raised from following domains : DVD_DOMAIN_MENU
  688.     //
  689.  
  690.     #define EC_DVD_CMD_START                 (EC_DVDBASE + 0x16)
  691.     // Parameters: (CmdID, HRESULT)
  692.     // Sent when a command begins
  693.     //
  694.  
  695.     #define EC_DVD_CMD_END                 (EC_DVDBASE + 0x17)
  696.     // Parameters: (CmdID, HRESULT)
  697.     // Sent when a command completes
  698.     //
  699.  
  700.     #define EC_DVD_DISC_EJECTED                (EC_DVDBASE + 0x18)
  701.     // Parameters: none
  702.     // Sent when the nav detects that a disc was ejected and stops the playback
  703.     // The app does not need to take any action to stop the playback.
  704.     //
  705.  
  706.     #define EC_DVD_DISC_INSERTED                (EC_DVDBASE + 0x19)
  707.     // Parameters: none
  708.     // Sent when the nav detects that a disc was inserted and the nav begins playback
  709.     // The app does not need to take any action to start the playback.
  710.     //
  711.  
  712.     #define EC_DVD_CURRENT_HMSF_TIME                     (EC_DVDBASE + 0x1a)
  713.     // Parameters: ( ULONG, ULONG ) 
  714.     // lParam2 contains a union of the DVD_TIMECODE_FLAGS
  715.     // lParam1 contains a DVD_HMSF_TIMECODE.  Assign lParam1 to a ULONG then cast the
  716.     // ULONG as a DVD_HMSF_TIMECODE to use its values.
  717.     //
  718.     // Raised from following domains: DVD_DOMAIN_Title
  719.     //
  720.     // Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec.
  721.  
  722.     #define EC_DVD_KARAOKE_MODE                     (EC_DVDBASE + 0x1b)
  723.     // Parameters: ( BOOL, reserved ) 
  724.     // lParam1 is either TRUE (a karaoke track is being played) or FALSE (no karaoke data is being played).
  725.     //
  726.  
  727.  
  728. #endif    // DirectX 8.0 content
  729.  
  730.  
  731. #endif // __DVDEVCOD__
  732.